'use strict';
var ProgressBar = require('progress');
var bar = new ProgressBar('  downloading [:bar] :percent ', {
	complete: '=',
	incomplete: ' ',
	renderThrottle: 16,
	width: 50,
	total: 1000,
	callback: ()=>{
		clearInterval(timer)
	}
});

const timer = setInterval(()=>{
	bar.update();
},5)